package com.colin.service.impl;

import com.colin.mapper.UserMapper;
import com.colin.pojo.User;
import com.colin.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpi implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public void insertUser (User user) {
        userMapper.insertUser(user);
    }

    //查询登录用户是否存在
    @Override
    public User selectLoginUser (User user) {
        User user1 = userMapper.selectLoginUser(user);
        return user1;
    }
}
